package com.spark.invoicings.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * 到货明细表
 * 
 * @author sunyan
 * @email sunyan@gmail.com
 * @date 2024-06-13 11:15:03
 */
@Data
@TableName("t_receipt_detail")
public class ReceiptDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 到货明细id
	 */
	@TableId(type = IdType.AUTO)
	private Integer receiptDetailId;
	/**
	 * 所属到货单id
	 */
	private Integer receiptOrderId;
	/**
	 * 商品id
	 */
	private Integer productId;
	/**
	 * 本次到货数量
	 */
	private Integer receivedQuantity;
	/**
	 * 采购明细id
	 */
	private Integer purchaseDetailId;

	@TableField(exist = false)
	private PurchaseArrival purchaseArrival;

	@TableField(exist = false)
	private Product product;

	@TableField(exist = false)
	private PurchaseDetail purchaseDetail;

	@TableField(exist = false)
	private List<Order> orderList;

	public Integer getReceiptDetailId() {
		return receiptDetailId;
	}

	public void setReceiptDetailId(Integer receiptDetailId) {
		this.receiptDetailId = receiptDetailId;
	}

	public Integer getReceiptOrderId() {
		return receiptOrderId;
	}

	public void setReceiptOrderId(Integer receiptOrderId) {
		this.receiptOrderId = receiptOrderId;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public Integer getReceivedQuantity() {
		return receivedQuantity;
	}

	public void setReceivedQuantity(Integer receivedQuantity) {
		this.receivedQuantity = receivedQuantity;
	}

	public Integer getPurchaseDetailId() {
		return purchaseDetailId;
	}

	public void setPurchaseDetailId(Integer purchaseDetailId) {
		this.purchaseDetailId = purchaseDetailId;
	}

	public PurchaseArrival getPurchaseArrival() {
		return purchaseArrival;
	}

	public void setPurchaseArrival(PurchaseArrival purchaseArrival) {
		this.purchaseArrival = purchaseArrival;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public PurchaseDetail getPurchaseDetail() {
		return purchaseDetail;
	}

	public void setPurchaseDetail(PurchaseDetail purchaseDetail) {
		this.purchaseDetail = purchaseDetail;
	}

	public List<Order> getOrderList() {
		return orderList;
	}

	public void setOrderList(List<Order> orderList) {
		this.orderList = orderList;
	}
}
